package com.slf.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.slf.ro.RolePermissionRo;
import com.slf.service.RoleService;
import com.slf.vo.RolePermissionVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 角色表(Role)表控制层
 *
 * @author SLF
 * @since 2023-03-30 16:33:44
 */
@RestController
@RequestMapping("role")
public class RoleController {
    /**
     * 服务对象
     */
    @Resource
    private RoleService roleService;

    /**
     * 查询用角色权限信息
     *
     * @param page 分页信息
     * @param ro   查询条件
     * @return
     */
    @GetMapping("listRolePermission")
    public Page<RolePermissionVo> listRolePermission(Page<RolePermissionVo> page, RolePermissionRo ro) {
        return roleService.listRolePermission(page, ro);
    }

}

